<style scoped src="./index.scss" lang="scss" rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
    import Edit from "./../edit/index";
    export default {
        mixins: [Vue.prototype.$vFN.Mixins.Base, Vue.prototype.$vFN.Mixins.Page, Vue.prototype.$vFN.Mixins.Table],
        components: {},
        data() {
            return {
                appWindow: window,
                // 页面接口地址
                apiUrl: {
                    list: "mall-site-portal/wechat-mp-menu-group/list",
                    delete: "mall-site-portal/wechat-mp-menu-group/delete",
                },

                // 列表常量查询参数
                mixinTable_tableSearchConst: {
                    // 菜单类型 1默认 2个性化
                    menuType:1
                },

                // 表格数据删除展示结构
                tableDeleteConfig: {
                    columns: [{
                            label: "模板名称",
                            prop: "name",
                            type: ""
                        },
                           {
                            label: "是否启用",
                            prop: "isOpen",
                            type: "state-icon",
                        options:{			// 状态
                            success:1,
                            error:0,
                        }
                        },
                    ],
                },

            };
        },
        methods: {
            // 打开添加/修改
            editBoxOpen(params_) {
                Edit.init({
                    mixinEdit_parent:this,
                    mixinEdit_editType: params_.type,
                    id: params_.id,
                })
            },
            // 初始化
            async init() {
                this.mixinTable_initSearchData();
            },




        },
        mounted() {
            this.init();

        },


        activated() {},
    };
</script>